home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / Run & Stumpy / source / directoryloop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-19  |  511 b   |  31 lines  |  [TEXT/MPS ]

  1. #ifndef directoryloop_h
  2. #define directoryloop_h
  3.  
  4. #include <files.h>
  5.  
  6. #ifndef errorsource_h
  7. #include "errorsource.h"
  8. #endif
  9.  
  10. class directoryloop: public errorsource
  11.   {
  12.     private:
  13.         CInfoPBRec pb;
  14.         long dirid;
  15.         Str63 thename;
  16.         
  17.     public:
  18.         directoryloop( const FSSpec& directory );
  19.         
  20.         void next();
  21.         
  22.         boolean unfinished() const        { return !iswrong(); }
  23.         
  24.         boolean invisible() const
  25.           { return pb.hFileInfo.ioFlFndrInfo.fdFlags & fInvisible; }
  26.         
  27.         OSErr makespec( FSSpec& );
  28.   };
  29.  
  30. #endif directoryloop_h
  31.